import base from '@/util/api/HttpBase.js';
import axios from '@/util/http.js';
const article = {
    // 获取用户订单 http://127.0.0.1:8000/order/userOrder
    get_userOrder(params) { return axios.get(`${base.localhost}/order/userOrder`, params) },

    // 酒店是否预定  http://127.0.0.1:8000/order/hotelReserve?id=1
    get_hotelReserve(params) { return axios.get(`${base.localhost}/order/hotelReserve`, params); },

    //预定酒店 http://127.0.0.1:8000/order/hotelReserve
    post_hotelReserve(params) { return axios.post(`${base.localhost}/order/hotelReserve`, params); },

    // 预定景点的门票  http://127.0.0.1:8000/order/ticketReserve
    post_ticketReserve(params) { return axios.post(`${base.localhost}/order/ticketReserve`, params); },

    // 是否预定了景点的门票 http://127.0.0.1:8000/order/ticketReserve?id=1
    get_ticketReserve(params) { return axios.get(`${base.localhost}/order/ticketReserve`, params); },

}
export default article;